package com.steellee.leeexcel.exception;

/**
 * 返回码+返回信息
 *
 * @author steellee
 * @date 2023-02-17
 */
public enum MsgCode {
    FILE_ANALYSIS_SUCCESS("000000", "文件解析成功! "),
    FILE_ANALYSIS_ERR("900001", "文件解析失败! "),
    CHECK_ROW_NUM_ERR("900002", "行数校验失败! "), // 行数校验失败
    CHECK_NOT_NULL_ERR("900003", ""), // validate校验
    GET_FIELD_MSG_ERR("900004", "返回对象@ExcelProperty- Index获取失败! "),
    WRITE_STREAM_ERR("900005", "写出文件流失败! "),
    WRITE_OPERATE_ERR("900006", "请选择写出文件流或指定文件路径! "),
    FILE_PATH_ERR("900007", "文件路径不存在! "),
    CHECK_IS_MAP("900008", "请选择业务方数据体是否是 Map! "),
    COLUMN_NOT_NULL("900009", "自定义样式时列数据必传! "),
    COLUMN_NO_DATA("900010", "列数据集合不能为空! "),
    COLUMN_NO_START_END("900011", "指定起止列号不能为空! "),
    OWN_CHECK_FAIL("900012", "业务方个性化校验失败! "),
    FAIL_TEMP_ERR("900013", "导入模板不正确,请选择正确模板重新导入!");

    public String code;
    public String msg;

    MsgCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}